xfree( hint );
}
}
- else if (strcmp(wpt->notes,wpt->description)) {
+ else if (!wpt->notes && (!wpt->description || strcmp(wpt->notes,wpt->description))) {
fprintf (file_out, "<p class=\"notes\">%s</p>\n", wpt->notes);
}
fprintf(file_out, "</td></tr></table>\n");
xfree( hint );
}
}
- else if (strcmp(wpt->notes,wpt->description)) {
+ else if (wpt->notes && (!wpt->description || strcmp(wpt->notes,wpt->description))) {
docprintf (10+strlen(wpt->notes), "%s\n", wpt->notes);
}
if (! suppresssep)
xfree( hint );
}
}
- else if (strcmp(wpt->notes,wpt->description)) {
+ else if (wpt->notes && (!wpt->description || strcmp(wpt->notes,wpt->description))) {
fprintf (file_out, "%s\n", wpt->notes);
}
if (! suppresssep)